package com.ocgs.service;

import com.ocgs.base.core.exception.BaseServiceException;
import com.ocgs.model.Customer;
import com.ocgs.pagination.PaginatedListImpl;
import org.displaytag.pagination.PaginatedList;

/**
 * Created with IntelliJ IDEA.
 * User: bryant
 * Date: 10/21/12
 * Time: 10:48 PM
 * To change this template use File | Settings | File Templates.
 */
public interface CustomerService {

    int deleteByPrimaryKey(Integer id) throws BaseServiceException;

    int insert(Customer record) throws BaseServiceException;

    int insertSelective(Customer record) throws BaseServiceException;

    Customer selectByPrimaryKey(Integer id) throws BaseServiceException;

    int updateByPrimaryKeySelective(Customer record) throws BaseServiceException;

    int updateByPrimaryKeyWithBLOBs(Customer record) throws BaseServiceException;

    int updateByPrimaryKey(Customer record) throws BaseServiceException;

    String retrieveCustomerAddress(Customer record) throws BaseServiceException;

//    List<customer> findAllCustomer() throws BaseServiceException;
//
    PaginatedList findAllCustomerForPagination(PaginatedListImpl paginatedList, Customer customer) throws BaseServiceException;
//
//    List<customer> getAllCustomer() throws BaseServiceException;
//
//    PaginatedList findAllStorageForPagination(PaginatedListImpl paginatedList, customer customer) throws BaseServiceException;
}
